package com.dt.app.modules.customer.entities;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 用户积分表
 * </p>
 *
 * @author 陈辉
 * @since 2024-03-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("customer_integral")
@ApiModel(value="CustomerIntegral对象", description="用户积分表")
public class CustomerIntegral implements Serializable {

    private static final long serialVersionUID=20240313232727211L;

    @ApiModelProperty(value = "积分记录表")
    @TableId(value = "customer_integral_id", type = IdType.AUTO)
    private Long customerIntegralId;

    @ApiModelProperty(value = "企业")
    @TableField("company_id")
    private Integer companyId;

    @ApiModelProperty(value = "用户id")
    @TableField("customer_id")
    private Long customerId;

    @ApiModelProperty(value = "关联对象")
    @TableField("ref_id")
    private Long refId;

    @ApiModelProperty(value = "类型 0惩罚扣分 1购物  2促销内容评论   4商家评论  5商家评论带媒体   6产品评论  7产品评论带媒体 8选举活动称赞  9选举活动评论   10选举活动评论 带媒体  11选举投票   12购物积分  13购买优惠券 14购买现金券 15平台支付 16提交简历 17完善用户资料 18收藏 16提交简历   17完善用户资料  21投递简历  20抽奖获得积分")
    @TableField("type_name")
    private String typeName;

    @ApiModelProperty(value = "值 扣分负数")
    @TableField("value")
    private Integer value;

    @ApiModelProperty(value = "操作时间")
    @TableField("do_time")
    private LocalDateTime doTime;

    @ApiModelProperty(value = "说明")
    @TableField("msg")
    private String msg;

    @TableField("deleted")
    @TableLogic
    private Integer deleted;


}
